home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / ext / standard / url.h < prev   
Encoding:
C/C++ Source or Header  |  2001-02-26  |  1.9 KB  |  55 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Jim Winstead (jimw@php.net)                                 |
  16.    +----------------------------------------------------------------------+
  17.  */
  18. /* $Id: url.h,v 1.9 2001/02/26 06:07:23 andi Exp $ */
  19.  
  20. #ifndef URL_H
  21. #define URL_H
  22.  
  23. typedef struct php_url {
  24.     char *scheme;
  25.     char *user;
  26.     char *pass;
  27.     char *host;
  28.     unsigned short port;
  29.     char *path;
  30.     char *query;
  31.     char *fragment;
  32. } php_url;
  33.  
  34. void free_url(php_url *);
  35. extern php_url *url_parse(char *);
  36. extern int php_url_decode(char *, int); /* return value: length of decoded string */
  37. extern char *php_url_encode(char *, int);
  38. extern int php_raw_url_decode(char *, int); /* return value: length of decoded string */
  39. extern char *php_raw_url_encode(char *, int);
  40.  
  41. PHP_FUNCTION(parse_url);
  42. PHP_FUNCTION(urlencode);
  43. PHP_FUNCTION(urldecode);
  44. PHP_FUNCTION(rawurlencode);
  45. PHP_FUNCTION(rawurldecode);
  46.  
  47. #endif /* URL_H */
  48.  
  49. /*
  50.  * Local variables:
  51.  * tab-width: 4
  52.  * c-basic-offset: 4
  53.  * End:
  54.  */
  55.